<?php
define( 'QQAUTH_APP_ID', '100249187' );
define( 'QQAUTH_APP_KEY', '9add2dd1bb0abfdbc65cf652f109249e' );
define( 'QQAUTH_REDIRECT_URI', 'www.oh4399.com/callback.php' );
define( 'QQAUTH_SCOPE', 'get_user_info,get_info,add_share,list_album,add_album,upload_pic,add_topic,add_one_blog,get_fanslist,check_page_fans,get_idolist,add_idol,del_idol,get_other_info,get_repost_list,del_t,add_pic_t');

// 请求授权路径
define( 'QQAUTH_AUTH_DOMAIN', 'https://graph.qq.com/oauth2.0/authorize?');
	
// 请求access token路径
define( 'QQAUTH_ACCESS_TOKEN_DOMAIN', 'https://graph.qq.com/oauth2.0/token?');
	
// 请求openid路径
define( 'QQAUTH_OPENID_DOMAIN', 'https://graph.qq.com/oauth2.0/me?');


// 各个交互接口的URL
/*
define( 'QQAUTH_API_BLOG_URL',  'https://graph.qq.com/blog/add_one_blog');
define( 'QQAUTH_API_USERINFO_URL', 'https://graph.qq.com/user/get_user_info');
define( 'QQAUTH_API_ALBUMLIST_URL', 'https://graph.qq.com/photo/list_album');
define( 'QQAUTH_API_FANSLIST_URL', 'https://graph.qq.com/relation/get_fanslist');
define(	'QQAUTH_API_INFO_URL', 'https://graph.qq.com/user/get_info');
*/
// QQ API 地址
$GLOBALS['QQAuth_Grant_Url_Map'] = array(
						'get_user_info' 	=> array('method' => 'get', 'url' => 'https://graph.qq.com/user/get_user_info'),
						'get_info'			=> array('method' => 'get', 'url' => 'https://graph.qq.com/user/get_info'),
						'add_share'			=> array('method' => 'post', 'url' => 'https://graph.qq.com/share/add_share'),
						'list_album'		=> array('method' => 'get', 'url' => 'https://graph.qq.com/photo/list_album'),
						'add_album'			=> array('method' => 'post', 'url' => 'https://graph.qq.com/photo/add_album'),
						'upload_pic'		=> array('method' => 'post', 'url' => 'https://graph.qq.com/photo/upload_pic'),
						'add_topic'			=> array('method' => 'post', 'url' => 'https://graph.qq.com/shuoshuo/add_topic'),
						'add_one_blog'		=> array('method' => 'post', 'url' => 'https://graph.qq.com/blog/add_one_blog'),
						'add_t'				=> array('method' => 'post', 'url' => 'https://graph.qq.com/t/add_t'),
						'get_fanslist'		=> array('method' => 'get', 'url' => 'https://graph.qq.com/relation/get_fanslist'),
						'check_page_fans'	=> array('method' => 'post', 'url' => 'https://graph.qq.com/user/check_page_fans'),
						'get_idolist' 		=> array('method' => 'get', 'url' => 'https://graph.qq.com/relation/get_idollist'),
						'add_idol'			=> array('method' => 'post', 'url' => 'https://graph.qq.com/relation/add_idol'),
						'del_idol' 			=> array('method' => 'post', 'url' => 'https://graph.qq.com/relation/del_idol'),
						'get_other_info' 	=> array('method' => 'get', 'url' => 'https://graph.qq.com/user/get_other_info'),
						'get_repost_list'	=> array('method' => 'get', 'url' => 'https://graph.qq.com/t/get_repost_list'),
						'del_t'				=> array('method' => 'post', 'url' => 'https://graph.qq.com/t/del_t'),
						'add_pic_t'			=> array('method' => 'post', 'url' => 'https://graph.qq.com/t/add_pic_t'),
						'get_tenpay_addr '	=> array('method' => 'post', 'url' => 'https://graph.qq.com/cft_info/get_tenpay_addr')
					);

